// 引入axios副本
import http from '@/utils/http.js'
// 获取验证码
function apiGetCode (mobile) {
  return http({
    url: '/au/code',
    method: 'post',
    data: {
      mobile: mobile
    }
  })
}
function apiLogin ({ mobile, code }) {
  return http({
    url: '/au/login',
    method: 'post',
    data: {
      mobile: mobile,
      code: code
    }
  })
}
function apiGetInfo () {
  return http({
    url: '/au/info',
    method: 'get',
    needToken: true
  })
}

export { apiGetCode, apiLogin, apiGetInfo }
